package blogs.eidos.cloud.framework.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;

/**
 * @author ： Eidos
 * @date ：Created in 2021/4/7
 * @description：
 * @modified By：
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "KeywordPageDto", description = "关键字查询分页对象")
public class KeywordPageDto extends BasePageDto {

    @Size(min = 0, max = 20, message = "关键词长度为0-20")
    @ApiModelProperty(value = "关键词", required = false)
    private String keyword;
}
